%%%%%
%%
%% This file sets up the Place datatype and creates Place macros.
%% Places correspond to general units of game that are not characters.
%% Generally, game elements that do not come in some character's
%% packet are owned by places.  A Place macro may contain zero or more
%% of any kind of element (most likely Sign and Item macros).
%%
%% The simplest case is a single Place macro, \pWorld{}, which
%% contains all miscellaneous game elements not owned by a character.
%% However, Place macros are a good way to sort game area by general
%% location or similar.  Place may also be used as a base for more
%% complex and specific subtypes.
%%
%% Places do not necessarily correspond to only locations; you could
%% set up a series of Place macros that each represent a time period
%% in which certain elements are to be introduced into game.
%%
%%%%%

\errorcontextlines=10

\DECLARESUBTYPE{Place}{Owner}
\PRESETS{Place}{
  \FD\MYwhere	{} %% if a Place is a single identifiable location
  \FD\MYwhen	{} %% if a Place is time-based
  }
\POSTSETS{Place}{
  \edef\mylocation{\MYwhere}
  \protected@edef\@ownerstring{%
    \MYname%
    \ifx\mylocation\empty\else\ (\mylocation)\fi%
    \ifx\MYwhen\empty\else\ (\MYwhen)\fi%
    }
  }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NEW{Place}{\pGMs}{
  \s\MYname	{Starting in possession of GMs}
  \s\MYsigns	{\sMacroMaterials{}\sMacroParts{}}
  \s\MYitems	{}
  \s\MYgreens	{\multi{5}{\gEconomics{}}\aTradeFC{}}
  \s\MYabils	{\aTradeFA{}\aTradeFC{}\aTradeCity{}}
}

\NEW{Place}{\pFamilyTwoFolder}{
  \s\MYname	{TEST NAME}
  \s\MYsigns	{}
  \s\MYitems	{\iMacroLabor{}\iMacroLabor{}\iMacroParts{}\iMacroParts{}\iMacroMaterials{}}
  \s\MYgreens	{}
  \s\MYabils	{}
}

\NEW{Place}{\pSomewhere}{ %Stuff that should be placed in game
  \s\MYname	{SOMEWHERE} 
  \s\MYitems	{}
  \s\MYsigns	{\sTerminalC{}\sTerminalM{}\sTerminalR{}\sTerminalT{}}
}

\NEW{Place}{\pTimedReleaseA}{ %Stuff that should be accessible at T+0:00
  \s\MYname     {T+0:00}
  \s\MYitems	{
  	\multi{1}{\iWidgetCM{}\iWidgetMR{}\iWidgetRT{}\iWidgetTC{}}
  }
}

\NEW{Place}{\pTimedReleaseB}{ %Stuff that should be accessible at T+0:30
  \s\MYname     {T+0:30}
  \s\MYitems	{
  	\multi{2}{\iWidgetCM{}\iWidgetMR{}\iWidgetRT{}\iWidgetTC{}}
  }
}

\NEW{Place}{\pTimedReleaseC}{ %Stuff that should be accessible at T+1:00
  \s\MYname     {T+1:00}
  \s\MYitems	{
        \multi{3}{\iWidgetCM{}\iWidgetMR{}\iWidgetRT{}\iWidgetTC{}}
  }
}

\NEW{Place}{\pTimedReleaseD}{ %Stuff that should be accessible at T+1:30
  \s\MYname     {T+1:30}
  \s\MYitems	{}
}

\NEW{Place}{\pTimedReleaseE}{ %Stuff that should be accessible at T+2:00
  \s\MYname     {T+2:00}
  \s\MYitems	{
  	\multi{4}{\iWidgetCM{}\iWidgetMR{}\iWidgetRT{}\iWidgetTC{}}
  }
}

\NEW{Place}{\pTimedReleaseF}{ %Stuff that should be accessible at T+2:30
  \s\MYname     {T+2:30}
  \s\MYitems	{}
}

\NEW{Place}{\pTimedReleaseG}{ %Stuff that should be accessible at T+3:00
  \s\MYname     {T+3:00}
  \s\MYitems	{
  	\multi{5}{\iWidgetCM{}\iWidgetMR{}\iWidgetRT{}\iWidgetTC{}}\multi{5}{\iWidgetCMRT{}}
  }
}

\NEW{Place}{\pTimedReleaseH}{ %Stuff that should be accessible at T+3:30
  \s\MYname     {T+3:30}
  \s\MYitems	{}
}
